<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4"><!--声明Thymeleaf命名空间-->
<head>
    <meta charset="UTF-8">
    <title>Thymeleaf Security</title>

</head>
<body>

<h1>你已经登录成功了！！！！</h1>
<p sec:authorize="isAuthenticated()">欢迎你！<span sec:authentication="name">someone</span></p>
<form method="post" th:action="@{/logout}">
    <input type="submit" value="退出"><!--如果开启了csrf，必须使用post方式，并提供csrf token来访问 logout url-->
</form>
<div><a th:href="@{/testMethodSecurity}">testMethodSecurity</a></div>
<h1>测试spring data</h1>
<hr>
<ul>
    <li><a th:href="@{/data/testJndiDatasource}">testJndiDatasource</a></li>
    <li><a th:href="@{/data/testTx}">testTx</a></li>
</ul>
<h1>测试aop</h1>
<ul>
    <li><a th:href="@{/aop/testAop}">testAop</a></li>
</ul>
<hr>
<h1>测试spring核心</h1>
<ul>
    <li><a th:href="@{/data/testConditionalBean}">testConditionalBean</a> </li>
    <li><a th:href="@{/data/testPrimaryBean}">testPrimaryBean</a> </li>
    <li><a th:href="@{/data/testSessionBean}">testSessionBean</a> </li>
</ul>
</body>
</html>